package com.lzw.crash;
import android.app.*;
import android.content.*;
import android.widget.*;
import android.view.*;
import java.lang.reflect.*;
public class myApp extends Application {

	static Context c = null;
    @Override
    public void onCreate() {
        super.onCreate();
		c = this;
		
		try {
            ViewConfiguration mconfig = ViewConfiguration.get(this);
            Field menuKeyField = ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey");
            if (menuKeyField != null) {
                menuKeyField.setAccessible(true);
                menuKeyField.setBoolean(mconfig, false);
            }
        } catch (Exception e) {
        }
		
        //设置异常捕获
        mCrash.getInstance().init(c);
    }

	public static Context getContext(){
		return c;
	}
}
